package com.my.zidingyikongjian.activity;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import com.my.zidingyikongjian.R;
import com.my.zidingyikongjian.view.six.DrawFingerTrackPath;

public class DrawFingerTrackActivity extends AppCompatActivity implements View.OnClickListener {

    private DrawFingerTrackPath drawFingerTrackPath;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_draw_finger_track);

        drawFingerTrackPath = findViewById(R.id.drawPath);
        findViewById(R.id.btn_reset).setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.btn_reset:
                drawFingerTrackPath.reset();
                break;
        }
    }
}
